import request from '@/utils/request'

// 列表
export const sysInvoiceHeaderQuery = (params) => {
  return request({
    url: '/sysInvoiceHeader/query',
    method: 'get',
    params
  })
}

// 列表-全部
export const sysInvoiceHeaderAll = (data) => {
  return request({
    url: '/sysInvoiceHeader/all',
    method: 'post',
    data
  })
}


// 删除
export const sysInvoiceHeaderDelete = (params) => {
  return request({
    url: '/sysInvoiceHeader/delete',
    method: 'get',
    params
  })
}

//新增
export const sysInvoiceHeaderAdd = (data) => {
  return request({
    url: '/sysInvoiceHeader/add',
    method: 'post',
    data
  })
}

// 编辑
export const sysInvoiceHeaderUpdate = (data) => {
  return request({
    url: '/sysInvoiceHeader/update',
    method: 'post',
    data
  })
}

// 获取所有客户/供应商列表
export const codePartnersGetAll = (params) => {
  return request({
    url: '/code-partners/getAll',
    method: 'get',
    params
  })
}
